SEE class 10 Computer Science solved question model
Subject: Computer Science |
Full Marks: 50
|
Time: 1:30:00 hrs Attempt ALL the questions. |
Group-
A [Very Short Answer Question: 10×1=10
1.
Answer the following questions in one sentence. 6×1=6
a)
Write any two examples of bounded media.
Ans: Two examples
of bounded are: Fiber optic cable and co-axial cable.
b)
Write any two methods of hardware security.
Ans: Following are
the two methods of hardware security.
i) Regular
maintenance
ii) Protection from
fire
c) What is
M-Commerce?
Ans: M-commerce, or mobile commerce, refers to the buying and selling of goods and services through mobile devices such as smartphones and tablet
d) List two examples of DBMS.
Ans: Two examples of DBMS are Ms-Access, and SQL
e) What is modular programming in QBASIC programming?
Ans: Modular programming is a software development technique in which a program is broken down into smaller, self-contained units called modules.
f) What is C language?
Ans: C is a general-purpose, high-level programming language that was developed in the early 1970s by Dennis Ritchie at Bell Labs.
2. Write the technical term for the following statements. 2×1=2
Ans: Phishing
b) The technology encodes files or messages.
Ans: Encryption
3. Write the full forms of the following. 2×1=2
b) ADSL: Asymmetric Digital Subscriber Line
Group
–B
Short Answer Types Questions. (24 Marks)
5) Write the output of the given program sowing the dry table. 2
DECLARE SUB series()
CLS
CALL series
END
SUB series()
a=11111
c=5
WHILE c>=1
PRINT a;
a=a\10
c=c-1
WEND
END SUB
Dry Run
Variable A |
Variable C |
Checking loop Is c>=1? |
Output |
11111 |
5 |
Is 5>=1 ? Yes |
11111 |
1111 |
4 |
Is 4>=1? Yes |
1111 |
111 |
3 |
Is 3>=1? Yes |
111 |
11 |
2 |
Is 2>=1? Yes |
11 |
1 |
1 |
Is 1>=1? Yes |
1 |
0 |
0 |
Is 0>=1? No, Exit
from loop |
|
Final Output:
11111 1111 111 11 1
6) Debug the following program. 2
REM to store name, address in the file "store.dat"
CLS
OPEN "store.dat" FOR INPUT AS #1
DO
INPUT "Enter name";name$
INPUT "Enter address";address
WRITE name$,address$
INPUT "Do you want to continue";ans$
LOOP WHILE UCASE$(ans$)="Y"
CLOSE #2
END
Debugged program
REM to store name, address in the file "store.dat"
CLS
OPEN "store.dat" FOR OUTPUT AS #1
DO
INPUT "Enter name";name$
INPUT "Enter address";address$
WRITE #1, name$,address$
INPUT "Do you want to continue";ans$
LOOP WHILE UCASE$(ans$)="Y"
CLOSE #1
END
7) Read the following program and answer the given question. 2
DECLARE SUB string(x$)
CLS
x$="COMPUTER"
CALL string(x$)
END
SUB string(x$)
L=LEN(x$)
FOR A=L TO 1 STEP -2
PRINT MID$(x$,A,1)
NEXT A
END SUB
Questions:
a) What is the value of L in the above program?
Ans: The value of L in the above program is 8.
b) List the numeric and string variable in the above program.
Ans: Numeric variable: L,A String variable: x$
8. Convert the following as indicated 4×1=4
i) (CAB)16 into binary
ii) (767)8 into decimal
iii) (1110111)2 + (1011)2 - (11)2
iv) (10111101)2 ÷ (101)2
9) Answer the following questions. 4×2=8
DECLARE FUNCTION area(r,h)
DECLARE SUB volume(r,h)
CLS
INPUT "Enter radius";r
INPUT "Enter height";r
PRINT area(r,h)
CALL volume(r,h)
END
FUNCTION area(r,h)
area=2*3.14*r*(r+h)
END FUNCTION
SUB volume(r,h)
v=3.14*r^2*h
PRINT "Volume of cylinder=";v
END SUB
OPEN "employee.dat" FOR INPUT AS #2
CLS
DO WHILE NOT EOF(2)
INPUT #1,name$, add$, age, sal
IF UCASE$(add$)="KATHMANDU" AND s > 50000 THEN
PRINT name$, add$, age, sal
ENDIF
WEND
CLOSE #1
END
Click here for computer manual.
10. Write a program in C programming to find the reverse of an input number. 4
#include <stdio.h>
int main()
{
int num, rev = 0, digit;
printf("Enter a number: ");
scanf("%d", &num);
while (num != 0) {
digit = num % 10;
rev = rev * 10 + digit;
num /= 10;
}
printf("The reversed number is: %d", rev);
return 0;
}
OR
Write a c program to input three numbers and check whether input number is positive, negative or zero.
#include <stdio.h>
int main()
{
int n;
printf("Enter any number:\n ");
scanf("%d",&n);
if(n>0)
printf("Number is Positive");
else if(n<0)
printf("Number is Negative");
else
printf("Number is Zero");
return 0;
}
No comments:
Post a Comment